// umbe scss
@import '@/assets/umbe/index.scss';

//
@import 'variables';
@import 'mixin';
//
@import 'transition';
@import './element/element-ui.scss';
@import 'sidebar';
@import 'custom';
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial,
    sans-serif;
  // background: #f4f5f6;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}


.line-default {
  line-height: 1.41312152;
}

.line-small {
  line-height: 1.2;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

.pointer {
  cursor: pointer;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  display: block;
  &:not(.el-aside) {
    background: #eef1f6;
    padding: 8px 24px;
    border-radius: 2px;
  }
  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 0 15px;
  position: relative;

  .toggle-bar {
    top: 10px;
  }
}

.components-container {
  position: relative;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }

  &.el-form--inline {
    .el-form-item {
      margin-right: 0;
      & + .el-form-item {
        margin-left: 10px;
      }
    }
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.square-box {
  position: relative;
  &::after {
    padding-top: 100%;
    content: '';
    display: block;
  }
  > * {
    position: absolute;
    width: 100%;
    height: 100%;
  }
}

.input-button-suffix {
  .el-input__suffix {
    right: 0;
    .el-button {
      border: none;
      &.el-button--text {
        padding: 10px;
      }
    }
  }
}

.not-set {
  font-style: italic;
  color: #b6b6b6;
  opacity: 0.8;
  font-size: 12px;
}

.router-link-active {
  font-size: 12px;
  color: $--color-primary;
}
